/*
 *  ETCleanup.cpp
 *  EidoTron
 *
 *  Created by Luca Di Franco on 08/03/11.
 *  Copyright 2011 Luca Di Franco. All rights reserved.
 *
 */

#include "EidoTronApp.h"

#include "../Scene_organization/SceneNode.h"
#include "../Entities/Battleground.h"


void EidoTronApp::cleanup()
{
	((BOEntity*)(redCycle->data))->deleteBufferObjects();
	delete redCycle;
	((BOEntity*)(greenCycle->data))->deleteBufferObjects();
	delete greenCycle;
	((BOEntity*)(blueCycle->data))->deleteBufferObjects();
	delete blueCycle;
	
	((BOEntity*)(battleground->data))->deleteBufferObjects();
	delete ((BOEntity*)(battleground->data));
	
	delete camera;
	
	SDL_FreeSurface(displaySurface);
	SDL_Quit();
}